<ui:composition xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">
	<p:dialog closeOnEscape="true" header="#{msgs.serviceCreation}" id="dialogServiceCreation" modal="true" resizable="false" widgetVar="dialogServiceCreationVar" width="280">
		<h:form id="serviceCreationForm">
			<h:panelGrid columns="3" id="inputGrid">
				<h:outputText value="#{msgs.label}*: "/>
				<p:inputText id="inputLabel" required="true" value="#{servicesAdministrationController.serviceToCreate.label}"/>
				<p:message display="icon" for="inputLabel" />
			</h:panelGrid>
			<p:outputPanel layout="block" styleClass="buttonContainer center">
				<p:commandButton actionListener="#{servicesAdministrationController.createService}" image="ui-icon ui-icon-circle-plus" oncomplete="handleSaveRequest(xhr, status, args, dialogServiceCreationVar)" type="submit" update="inputGrid" value="#{msgs.create}"/>
				<p:commandButton image="ui-icon ui-icon-circle-close" onclick="dialogServiceCreationVar.hide()" type="button" value="#{msgs.cancel}"/>
			</p:outputPanel>
		</h:form>
	</p:dialog>
</ui:composition>